package com.shopmall.service;

import com.shopmall.pojo.Admin;
import com.shopmall.pojo.Goods;

import java.util.List;

public interface AdminService { //service层 与 Mapper层同名接口类
    public List<Admin> queryAdminList();

    List<Admin> queryAdminSysList();

    List<Admin> queryAdminMallList();

    public Admin queryAdminById(int id);

    public Admin queryAdminByUsername(String username);

    public int addAdmin(Admin admin);

    public int updateAdmin(Admin admin);

    public int modify_password(Admin admin);

    public int deleteAdmin(int id);

    int headPic(Admin admin); //上传图片，修改数据库中属性为新的文件路径
}
